import { ResponseData } from '../public'

export interface TableList extends ResponseData {
    total: number,
    current: number,
    pageSize: number,
    data: []
  }

  export interface EditData extends ResponseData {
    data: any
  }

  export interface OnlineInput{
    Id: String,
    Name: String,
    Code: String,
    TableId: String,
    TableCode: Boolean,
    DataForm: Number,
    ApiConfigs:String,
    TableComments:String,
    IsValid:Boolean,
    IsPage:String,
    Description:String,
    IsShowCheckBox:Boolean,
    IsSingleSelected:Boolean,
    OnlineFieldInputs:[]
  }

  export enum DataForm{
    API=1,
    DataBase=2,
    StaticData=3,
    File=4
}

//增加一个API配置枚举
export enum ApiConfigType{
    custom='custom',
    add='add',
    update='update',
    delete='delete',
    get='get',
    saveOrUpdate='saveOrUpdate',
}

//新增一个HttpType枚举
export enum HttpType{
    GET='GET',
    POST='POST',
    PUT='PUT',
    DELETE='DELETE'
}